package com.aihna.mall.domain.vo;

import com.aihna.common.translation.annotation.Translation;
import com.aihna.common.translation.constant.TransConstant;
import com.aihna.mall.domain.StoreBanner;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.aihna.common.excel.annotation.ExcelDictFormat;
import com.aihna.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 店铺轮播图视图对象 vvl_store_banner
 *
 * @author Joseph.Chen
 * @date 2024-05-17
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = StoreBanner.class)
public class StoreBannerVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 轮播图ID
     */
    @ExcelProperty(value = "轮播图ID")
    private Long id;

    /**
     * 店铺id
     */
    @ExcelProperty(value = "店铺id")
    private Long storeId;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 链接地址
     */
    @ExcelProperty(value = "链接地址")
    private String url;

    /**
     * 图片地址
     */
    @ExcelProperty(value = "图片地址")
    private String image;

    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "image")
    private String imageUrl;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long sort;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String description;

    /**
     * 状态，0：有效/启用；1：无效
     */
    @ExcelProperty(value = "状态，0：有效/启用；1：无效")
    private String status;


}
